package file;
import java.io.File;
import java.io.IOException;

/*
    在当前项目目录下创建100个文件，名字为test1.txt-test100.txt
 */
public class Test {
    public static void main(String[] args) throws IOException {
        for (int i = 1; i <= 100; i++) {
            File file = new File("test" + i + ".txt");
            file.createNewFile();
            System.out.println("文件创建完毕");
        }
    }
}
